import Vue from "vue";
import VueRouter from "vue-router";

// import AComp from "../AComp.vue";
// import BComp from "../BComp.vue";

Vue.use(VueRouter);

export default new VueRouter({
	routes: [
		{
			path: "/a",
			component: () => import("../AComp.vue"), // 路由懒加载
		},
		{
			path: "/b",
			component: () => import("../BComp.vue"),
		},
		{
			path: "*",
			redirect: "/a",
		},
	],
});
